package com.youyi.yychosesdk.utils.media;

import android.content.Context;
import android.media.MediaScannerConnection;
import java.io.File;
import java.util.Iterator;
import java.util.List;

public class MediaScannerConnectionUtils {
    public static void refresh(Context context, String... strArr) {
        MediaScannerConnection.scanFile(context.getApplicationContext(), strArr, null, null);
    }

    public static void refresh(Context context, File... fileArr) {
        int length = fileArr.length;
        for (int i = 0; i < length; i++) {
            refresh(context, fileArr[i].getAbsolutePath());
        }
    }

    public static void refresh(Context context, List<String> list) {
        Iterator<String> it = list.iterator();
        while (it.hasNext()) {
            refresh(context, it.next());
        }
    }
}
